import {tableMetas} from "@/metas/DbTableMetas";
import {demoMenus} from "@/components/OptionsMetaData";

const commonContainerMetas = [
    {field: 'name', title: '模块名称', type: 'text', placeholder: '用户管理'},
    {field: 'alias', title: '模块别名', type: 'text', placeholder: 'user'
        , rules:[{required: true, message: '别名必填'}]},
]

const containerFunction = [
    {field: 'desc', type: 'divider', title: '模块配置'},
    ...commonContainerMetas,
    {field: 'menuId', title: '父菜单', type: 'treeSelect', data: demoMenus},
]

const TableContainerTabMetas = {
    basic: {label: '基础配置', metas: [...tableMetas, ...containerFunction]},
}

const BasicContainerTabMetas = {
    basic: {label: '基础配置', metas: [...commonContainerMetas]}
}
export {TableContainerTabMetas, BasicContainerTabMetas}
